package edu.ccut.saturn.studio.logic.policy;

import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.handles.MoveHandle;
/**
 * 确定Handle图形的大小。
 * @author alf
 *
 */
public class SaturnMoveHandle extends MoveHandle {

	public SaturnMoveHandle(GraphicalEditPart owner) {
		super(owner);
	}

	@Override
	public Rectangle getBounds() {
		Rectangle r = Rectangle.SINGLETON;
		r.setBounds(new Rectangle(super.getBounds().x , super.getBounds().y
				, super.getBounds().width,super.getBounds().height));
//		r.setBounds(new Rectangle(super.getBounds().x , super.getBounds().y
//				, 65,50));
//		r.setBounds(new Rectangle(super.getBounds().x + super.getBounds().width
//				/ 2 - 26, super.getBounds().y, 50, 50));
		return r;
	}
}
